Code coverage report for ./tests/foo.js

Statements: 100% (8 / 8)      Branches: 100% (0 / 0)      Functions: 100% (3 / 3)      Lines: 100% (8 / 8)     

All files » ./tests\ » foo.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21              1 1 1   1 1 1 1 1          
/**
 * Created with JetBrains PhpStorm.
 * User: Elena.Pogorelova
 * Date: 8/22/12
 * Time: 4:47 PM
 * To change this template use File | Settings | File Templates.
 */
describe('foo', function () {
    it('should be true', function () {
        expect(1 + 2).toEqual(3);
    });
    it('should increment a variable', function () {
        var foo = 0;            // set up the world
        foo++;                  // call your application code
		console.log("foo: " + foo);
        expect(foo).toEqual(12); // passes because foo == 1
    });
});